<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单绑定</title>
</head>
<body>
    <div id="div">
        <form autocomplete="off">
            <!--
                单向绑定
            -->
            姓名_单向绑定：<input type="text" name="username">
            <br>
            <!--
                双向绑定
            -->
            姓名_双向绑定：<input type="text" name="username">
            <br>
            年龄：<input type="number" name="age">
            性别:<input type="text" name="gender">

        </form>

        <hr>
    </div>
</body>
<script src="js/vue.js"></script>
<script>
    new Vue({
        el:"#div",
        data:{
            username:"张三",
            age:23,
            gender:"男"
        }
    });
</script>
</html>